﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Net.Sz.Framework.Netty.Http
{
    /// <summary>
    /// 
    /// <para>PS:</para>
    /// <para>@author 失足程序员</para>
    /// <para>@Blog http://www.cnblogs.com/shizuchengxuyuan/</para>
    /// <para>@mail 492794628@qq.com</para>
    /// <para>@phone 13882122019</para>
    /// </summary>
    public class HttpContentType
    {
        string content = null;

        public static readonly HttpContentType HTTP_CONTENT_All = new HttpContentType("*/*; charset=UTF-8");
        public static readonly HttpContentType HTTP_CONTENT_TEXT = new HttpContentType("text/plain; charset=UTF-8");
        public static readonly HttpContentType HTTP_CONTENT_JSON = new HttpContentType("applicaton/x-json; charset=UTF-8");
        public static readonly HttpContentType HTTP_CONTENT_HTML = new HttpContentType("text/html; charset=UTF-8");
        public static readonly HttpContentType HTTP_CONTENT_XML = new HttpContentType("text/xml; charset=UTF-8");
        public static readonly HttpContentType HTTP_CONTENT_JAVACRIPT = new HttpContentType("application/javascript; charset=UTF-8");

        public HttpContentType(string content)
        {
            this.content = content;
        }

        public override string ToString()
        {
            return content;
        }

    }
}
